const mongoose = require('mongoose')

const userSchema = new mongoose.Schema({
  username: String,
  pwd: {
    type: String,
    select: false
  },
  avatar: {
    type: String,
    default: ''
  },
  sex: {
    type: String,
    default: ''
  },
  desc: {
    type: String,
    default: ''
  },
  phone: {
    type: String,
    default: ''
  },
  email: {
    type: String,
    default: ''
  }
})

const Users = mongoose.model('users', userSchema)

module.exports = Users
